/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package function;

import java.io.File;
import java.util.ArrayList;

/**
 *
 * @author asfeor
 */
public class DirList {
  
    public ArrayList <String> DirList(String dir){
     File f=new File(dir);
     String[] s=f.list();
     ArrayList <String> List=new ArrayList<String>();
     int i;
     for (i=0; i<s.length; i++)
     List.add(s[i]);
     return List;   
    }
    
}
